package com.tai.design.state.after;

/**
 * The type Lift state.
 *
 * @version v1.0
 * @ClassName: LiftState
 * @Description: 抽象状态类
 * @Author: taylor
 */
public abstract class LiftState {

    /**
     * The Context.
     */
//声明环境角色类变量
    protected Context context;

    /**
     * Sets context.
     *
     * @param context the context
     */
    public void setContext(Context context) {
        this.context = context;
    }

    /**
     * Open.
     */
//电梯开启操作
    public abstract void open();

    /**
     * Close.
     */
//电梯关闭操作
    public abstract void close();

    /**
     * Run.
     */
//电梯运行操作
    public abstract void run();

    /**
     * Stop.
     */
//电梯停止操作
    public abstract void stop();
}
